package com.daotu.psy.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.daotu.psy.admin.api.dto.DeptUserCountDTO;
import com.daotu.psy.admin.api.entity.SysDept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 部门管理 Mapper 接口
 * </p>
 *
 * @author lengleng
 * @since 2018-01-20
 */
@Mapper
public interface SysDeptMapper extends BaseMapper<SysDept> {

	/**
	 * 获取部门下总人数
	 *
	 * @param deptIds 部门列表
	 * @return list
	 */
	List<DeptUserCountDTO> selectUserCount(@Param("deptIds") Set<Long> deptIds);
}
